package com.xiaoshuidi.cloud.module.rooms.convert.area;

import com.xiaoshuidi.cloud.module.rooms.controller.admin.area.vo.RoomAreaResp;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomArea;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author Feng
 * @date 2023/5/8
 */
@Mapper
public interface RoomAreaConvert {

    RoomAreaConvert INSTANCE = Mappers.getMapper(RoomAreaConvert.class);

    RoomAreaResp convert(RoomArea area);

    List<RoomAreaResp> convert(List<RoomArea> list);
}
